package stackcode;

import java.util.LinkedList;
import java.util.Stack;

/**
 * @author noob
 * @version 1.0
 * @date 2021/3/14 11:23
 */
public class MainTest {

    public static void main(String[] args) {
        ArrayStack<Integer> arrayStack = new ArrayStack<>();
        for (int i = 0; i < 5; i++) {
            arrayStack.push(i);
            System.out.println(arrayStack);
        }
        arrayStack.pop();
        System.out.println(arrayStack);

    }
}
